package com.eascs.pay.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "o2o_pay")
public class O2oPayEntity {

	/**
	 * 主键id，关联主使用程序生成
	 */
	@Column(name = "id")
	@Id
	private String id;

	/**
	 * 单据编号
	 */
	@Column(name = "bill_code")
	private String billCode;

	/**
	 * 单据状态
	 */
	@Column(name = "bill_status")
	private String billStatus;

	/**
	 * 是否删除
	 */
	@Column(name = "isdel")
	private String isdel;

	/**
	 * 创建日期
	 */
	@Column(name = "create_time")
	private Date createDate;

	/**
	 * 创建人
	 */
	@Column(name = "creator")
	private String creator;

	/**
	 * 修改时间
	 */
	@Column(name = "last_update_time")
	private Date lastUpdateTime;

	/**
	 * 最后更新人
	 */
	@Column(name = "last_update_user")
	private String lastUpdateUser;

	/**
	 * 备用字段（备注）
	 */
	@Column(name = "remark")
	private String remark;

	/**
	 * 贷款id，关联主使用程序生成
	 */
	@Column(name = "loanapplyid")
	private String loanapplyid;

	/**
	 * 内部审批单号
	 */
	@Column(name = "loanapply_billcode")
	private String loanapplyBillcode;

	/**
	 * 借款人姓名
	 */
	@Column(name = "borrower_name")
	private String borrowerName;

	/**
	 * 借款人ID
	 */
	@Column(name = "borrowerid")
	private String borrowerId;

	/**
	 * 借款人id类型
	 */
	@Column(name = "borrowerid_type")
	private String borroweridType;

	/**
	 * 借款期限
	 */
	@Column(name = "loan_term")
	private String loanTerm;

	/**
	 * 借款金额
	 */
	@Column(name = "loan_amount")
	private BigDecimal loanAmount;

	/**
	 * 经营单位
	 */
	@Column(name = "platform")
	private String platform;

	/**
	 * 经营单位
	 */
	@Column(name = "platform_name")
	private String platformName;

	/**
	 * 收款人
	 */
	@Column(name = "payee_name")
	private String payeeName;

	/**
	 * 付款金额
	 */
	@Column(name = "pay_amount")
	private BigDecimal payAmount;

	/**
	 * 收款账号
	 */
	@Column(name = "collection_account")
	private String collectionAccount;

	/**
	 * 收款 开户行
	 */
	@Column(name = "collection_bank_name")
	private String collectionBankName;

	/**
	 * 收款行地址
	 */
	@Column(name = "collection_bank_address")
	private String collectionBankAddress;

	/**
	 * 付款方式
	 */
	@Column(name = "pay_type")
	private String payType;

	/**
	 * 付款账号
	 */
	@Column(name = "pay_fk_account")
	private String payFkAccount;
	/**
	 * 代偿类型
	 */
	@Column(name = "pay_fk_type")
	private String payFkType;

	/**
	 * 提交人
	 */
	@Column(name = "submit_user")
	private String submitUser;

	/**
	 * 提交时间
	 */
	@Column(name = "submit_time")
	private Date submitTime;

	/**
	 * 付款方式
	 */
	@Column(name = "organid")
	private int organid;

	/**
	 * 申请时间
	 */
	@Column(name = "applicant_time")
	private Date applicantTime;

	/**
	 * 申请时间
	 */
	@Column(name = "applicant")
	private String applicant;

	/**
	 * 付款时间
	 */
	@Column(name = "pay_date")
	private Date payDate;

	/**
	 * 付款备注
	 */
	@Column(name = "pay_remark")
	private String payRemark;

	/**
	 * 数据来源，OLD 老系统，NEW 新系统
	 */
	@Column(name = "resourse_from")
	private String resourseFrom;

	/**
	 * 代偿类型：DC 代偿，LXDC 利息代偿
	 */
	@Column(name = "loan_type")
	private String loanType;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getBillCode() {
		return billCode;
	}

	public void setBillCode(String billCode) {
		this.billCode = billCode;
	}

	public String getIsdel() {
		return isdel;
	}

	public void setIsdel(String isdel) {
		this.isdel = isdel;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public String getLastUpdateUser() {
		return lastUpdateUser;
	}

	public void setLastUpdateUser(String lastUpdateUser) {
		this.lastUpdateUser = lastUpdateUser;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getLoanapplyid() {
		return loanapplyid;
	}

	public void setLoanapplyid(String loanapplyid) {
		this.loanapplyid = loanapplyid;
	}

	public String getLoanapplyBillcode() {
		return loanapplyBillcode;
	}

	public void setLoanapplyBillcode(String loanapplyBillcode) {
		this.loanapplyBillcode = loanapplyBillcode;
	}

	public String getBorrowerName() {
		return borrowerName;
	}

	public void setBorrowerName(String borrowerName) {
		this.borrowerName = borrowerName;
	}

	public String getBorrowerId() {
		return borrowerId;
	}

	public void setBorrowerId(String borrowerId) {
		this.borrowerId = borrowerId;
	}

	public String getBorroweridType() {
		return borroweridType;
	}

	public void setBorroweridType(String borroweridType) {
		this.borroweridType = borroweridType;
	}

	public String getLoanTerm() {
		return loanTerm;
	}

	public void setLoanTerm(String loanTerm) {
		this.loanTerm = loanTerm;
	}

	public BigDecimal getLoanAmount() {
		return loanAmount;
	}

	public void setLoanAmount(BigDecimal loanAmount) {
		this.loanAmount = loanAmount;
	}

	public String getPlatform() {
		return platform;
	}

	public void setPlatform(String platform) {
		this.platform = platform;
	}

	public String getPlatformName() {
		return platformName;
	}

	public void setPlatformName(String platformName) {
		this.platformName = platformName;
	}

	public String getPayeeName() {
		return payeeName;
	}

	public void setPayeeName(String payeeName) {
		this.payeeName = payeeName;
	}

	public BigDecimal getPayAmount() {
		return payAmount;
	}

	public void setPayAmount(BigDecimal payAmount) {
		this.payAmount = payAmount;
	}

	public String getCollectionAccount() {
		return collectionAccount;
	}

	public void setCollectionAccount(String collectionAccount) {
		this.collectionAccount = collectionAccount;
	}

	public String getCollectionBankName() {
		return collectionBankName;
	}

	public void setCollectionBankName(String collectionBankName) {
		this.collectionBankName = collectionBankName;
	}

	public String getCollectionBankAddress() {
		return collectionBankAddress;
	}

	public void setCollectionBankAddress(String collectionBankAddress) {
		this.collectionBankAddress = collectionBankAddress;
	}

	public String getPayType() {
		return payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}

	public String getSubmitUser() {
		return submitUser;
	}

	public void setSubmitUser(String submitUser) {
		this.submitUser = submitUser;
	}

	public Date getSubmitTime() {
		return submitTime;
	}

	public void setSubmitTime(Date submitTime) {
		this.submitTime = submitTime;
	}

	public int getOrganid() {
		return organid;
	}

	public void setOrganid(int organid) {
		this.organid = organid;
	}

	public Date getApplicantTime() {
		return applicantTime;
	}

	public void setApplicantTime(Date applicantTime) {
		this.applicantTime = applicantTime;
	}

	public String getApplicant() {
		return applicant;
	}

	public void setApplicant(String applicant) {
		this.applicant = applicant;
	}

	public Date getPayDate() {
		return payDate;
	}

	public void setPayDate(Date payDate) {
		this.payDate = payDate;
	}

	public String getPayRemark() {
		return payRemark;
	}

	public void setPayRemark(String payRemark) {
		this.payRemark = payRemark;
	}

	public String getBillStatus() {
		return billStatus;
	}

	public void setBillStatus(String billStatus) {
		this.billStatus = billStatus;
	}

	public String getResourseFrom() {
		return resourseFrom;
	}

	public void setResourseFrom(String resourseFrom) {
		this.resourseFrom = resourseFrom;
	}

	@Override
	public String toString() {
		return "O2oPayEntity [id=" + id + ", billCode=" + billCode + ", billStatus=" + billStatus + ", isdel=" + isdel + ", createDate=" + createDate + ", creator=" + creator + ", lastUpdateTime=" + lastUpdateTime + ", lastUpdateUser=" + lastUpdateUser + ", remark=" + remark + ", loanapplyid=" + loanapplyid + ", loanapplyBillcode=" + loanapplyBillcode + ", borrowerName=" + borrowerName + ", borrowerId=" + borrowerId + ", borroweridType=" + borroweridType + ", loanTerm=" + loanTerm + ", loanAmount=" + loanAmount + ", platform=" + platform + ", payeeName=" + payeeName + ", payAmount=" + payAmount + ", collectionAccount=" + collectionAccount + ", collectionBankName=" + collectionBankName + ", collectionBankAddress=" + collectionBankAddress + ", payType=" + payType + ", submitUser=" + submitUser + ", submitTime="
				+ submitTime + ", organid=" + organid + ", applicantTime=" + applicantTime + ", applicant=" + applicant + ", payDate=" + payDate + ", payRemark=" + payRemark + ", payFkAccount=" + payFkAccount + ", payFkType=" + payFkType + ", loanType=" + loanType + "]";
	}

	public String getPayFkType() {
		return payFkType;
	}

	public void setPayFkType(String payFkType) {
		this.payFkType = payFkType;
	}

	public String getLoanType() {
		return loanType;
	}

	public void setLoanType(String loanType) {
		this.loanType = loanType;
	}

	public String getPayFkAccount() {
		return payFkAccount;
	}

	public void setPayFkAccount(String payFkAccount) {
		this.payFkAccount = payFkAccount;
	}

}
